package ddta;
/*
 * Class: Tarifa
 * Author : Julio Nevado
 */
// <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
// #[regen=yes,id=DCE.BEABB41E-37DE-1FD6-6532-47D92600B28B]
// </editor-fold> 
public class Tarifa {

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.E5D34C69-CD80-A253-2228-3B8F38438376]
    // </editor-fold> 
    private String codigoTarifa;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.E784CE39-61BE-5940-6A23-363B56B68932]
    // </editor-fold> 
    private double precioAdulto;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.42DC1BDC-841D-EB37-DA12-58CF8BA4AE8E]
    // </editor-fold> 
    private double precioAdultomayor;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.AB5C8D7B-2E13-C009-F748-2E7DE9CB9E4F]
    // </editor-fold> 
    private double precioNinio;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.DB3F872C-5FD3-7286-2D7E-7EE8075CA886]
    // </editor-fold> 
    public Tarifa (String codigo, double pn, double pa, double pam) {
        this.codigoTarifa = codigo;
        this.precioNinio = pn;
        this.precioAdulto = pa;
        this.precioAdultomayor = pam;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.3A8897BF-73D6-64BD-0028-B100FDEACB7B]
    // </editor-fold> 
    public double getPrecioNinio () {
        return precioNinio;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.9F5A7F6F-A4B2-677B-8398-B89D08F30C41]
    // </editor-fold> 
    public void setPrecioNinio (double val) {
        this.precioNinio = val;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.C159B698-AD4C-F6BA-FC70-5F20D9E64734]
    // </editor-fold> 
    public double getPrecioAdulto () {
        return precioAdulto;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.256D3CB9-4AA5-0567-D0D0-1A56FE152611]
    // </editor-fold> 
    public void setPrecioAdulto (double val) {
        this.precioAdulto = val;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.D47EE38C-F221-E84D-CB86-D3523493F059]
    // </editor-fold> 
    public double getPrecioAdultomayor () {
        return precioAdultomayor;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.65C230BD-1CD9-4479-2198-ECA8BC558A62]
    // </editor-fold> 
    public void setPrecioAdultomayor (double val) {
        this.precioAdultomayor = val;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.74C0108E-DD73-D002-BC48-B92FBA50AE47]
    // </editor-fold> 
    public String getCodigoTarifa () {
        return codigoTarifa;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.51753D9D-15AB-AC3B-2F6C-73E832600B02]
    // </editor-fold> 
    public void setCodigoTarifa (String val) {
        this.codigoTarifa = val;
    }
    @Override
    public String toString() {
        return String.format("%s - Precios=[ %s ,  %s ,  %s ]", this.codigoTarifa, this.precioNinio, this.precioAdulto, this.precioAdultomayor);
    }
}

